using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace bookmeetingroom.Data.Entities
{
    public class MeetingRoom : EntityBase
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [StringLength(100)]
        public string Name { get; set; }

        public int? ChargePerHour { get; set; }

        [StringLength(200)]
        public string PictureUrl { get; set; }

        [StringLength(100)]
        public string Capacity { get; set; }

        [ForeignKey("Building")]
        public int? BuildingId { get; set; }

        public Building Building { get; set; }

      
        public Guid CompanyId { get; set; }


        [StringLength(50)]
        public string OpenTime { get; set; }

        [StringLength(50)]
        public string CloseTime { get; set; }

        public bool AvaliableWeekends { get; set; }

        public int ShowOrder { get; set; }

  
        public List<MeetingRoomFacility> MeetingRoomFacilities { get; set; } = new List<MeetingRoomFacility>();

        public List<Booking> Bookings { get; set; } = new List<Booking>();

    }
}